/* 导航栏容器 */
.navigate-container {
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.navigate-container.collapsed {
  width: 80px;
}

/* 导航栏头部 */
.navigate-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.collapse-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 导航菜单 */
.navigate-menu {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin: 2px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.menu-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.menu-item.active:hover {
  transform: translateX(0);
}

.menu-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.menu-item.active .menu-text {
  color: white;
  font-weight: 600;
}

/* 工具提示 */
.tooltip {
  position: absolute;
  left: 70px;
  background: #1a202c;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-right-color: #1a202c;
}

.collapsed .menu-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* 导航栏底部 */
.navigate-footer {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navigate-footer .menu-item {
  margin: 2px 12px;
}

.navigate-footer .menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 滚动条样式 */
.navigate-menu::-webkit-scrollbar {
  width: 4px;
}

.navigate-menu::-webkit-scrollbar-track {
  background: transparent;
}

.navigate-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.navigate-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navigate-container {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .navigate-container.mobile-open {
    transform: translateX(0);
  }

  .navigate-container.collapsed {
    width: 260px;
  }
}

/* 动画效果 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-item {
  animation: slideIn 0.3s ease;
}

.menu-item:nth-child(1) {
  animation-delay: 0.1s;
}
.menu-item:nth-child(2) {
  animation-delay: 0.2s;
}
.menu-item:nth-child(3) {
  animation-delay: 0.3s;
}
.menu-item:nth-child(4) {
  animation-delay: 0.4s;
}
.menu-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* 激活状态动画 */
.menu-item.active {
  animation: activeGlow 0.5s ease;
}

@keyframes activeGlow {
  0% {
    box-shadow: 0 0 0 rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
  }
  100% {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }
}
